package com.hnust.aopdemo.security;

import org.springframework.context.i18n.LocaleContextHolder;

public class CurrentUserHolder {
    private static final ThreadLocal<String> holder = new ThreadLocal<String>();

    public static String getHolder() {
        return holder.get() == null ? "unknown" : holder.get();
    }

    public static void setHolder(String user) {
        holder.set(user);
    }
}
